@import "../common/common";

.teacher_detail_page {
    padding: 0 $_6;
    overflow: hidden;
    padding-bottom: $_80;
   .cover{
     background-position: center center;
     background-size: cover;
     background-repeat: no-repeat;
     background-color: #fff;
     padding: $_20;
     overflow: hidden;
     margin-top: $_20;
     border: 1px solid #ccc;
     padding-bottom: 0;
     border-radius: $_4;
   }

   .teacher_head{
     height: $_120;
     width: $_120;
     border-radius: $_200;
     margin: auto;
     overflow: hidden;
     img{
       width: 100%;
     }
   }

   .teacher_name{
     text-align: center;
     font-size: $_24;
     font-weight: bold;
     color: #555;
     padding: $_10;
   }

   .intro{
     line-height: $_38;
     color: #727272;
     font-size: $_24;
   }

   .text_overflow{
     overflow : hidden;
     text-overflow: ellipsis;
     display: -webkit-box;
     -webkit-box-orient: vertical;
     -webkit-line-clamp: 3;
   }

  .switch{
    margin: $_10 0;
    text-align: center;
    color: $color-green;
    position: relative;
    height: $_40;
  }

  .switch.open:before,.switch.close:before{
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    height: $_24;
    width: $_30;
    background-image: url("../../images/exit.png");
    background-size: auto 100%;
    background-position: center center;
    background-repeat: no-repeat;
    transform:rotate(90deg);
    -webkit-transform:rotate(90deg);
  }


  .switch.close:before{
    transform:rotate(-90deg);
    -webkit-transform:rotate(-90deg);
  }

  .server{
    margin-top: $_20;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: $_4;

    .list{
      padding: $_20;
      border-bottom: 1px solid #ececec;
      font-size: $_26;
    }

    .list:last-child{
      border: none;
    }

    .server_name{
      color: #666;
    }

    .server_price{
      color: $color-yellow;
    }
  }

  .skill{
    margin-top: $_20;
    background: #fff;
    padding: $_20;
    border: 1px solid #ccc;
    border-radius: $_4;

    .title{
      font-size: $_28;
      color: $color-yellow;

    }

    .detail{
      font-size: $_24;
      line-height: $_34;
      color: #727272;
      padding: $_20 0;
    }
  }

  .comment{
    margin-top: $_20;
    background: #fff;
    margin-bottom: $_20;
    border: 1px solid #ccc;
    border-radius: $_4;
    .top{
      padding: $_20 $_20 ;
      border-bottom: 1px solid #ececec;
    }
  }

  .comment_word{
    padding: 0 $_20;
    color: #737373;

    .list{

      padding: $_14 0;
      margin-bottom: $_10;
      border-bottom: 1px solid #ececec;


      .avat{
        height: $_80;
        width: $_80;
        border-radius: $_100;
        overflow: hidden;
      }

      .words{
        margin-left: $_10;
        width: $_590;

        .user_name{
          font-size: $_26;
          padding-top: $_4;
          padding-bottom: $_16;
        }
      }

      .detail_words{
        font-size: $_26;
        text-align: justify;
      }
    }

    .list:last-child{
      border: none;
    }

  }

  .sign_up{
    position: fixed;
    left: 0;
    bottom: 0;
    height: $_80;
    width: $_750;
    left: 0;
    right: 0;
    z-index: 666;
    margin: auto;

    button{
      width: 100%;
      height: 100%;
      background-color: $color-green;
      color: #fff;
      font-size: $_28;
    }
  }

  .comment_modal{
    position: fixed;
    display: none;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: rgba(0,0,0,.4);
    z-index: 1000;

    .modal{
      position: fixed;
      height: 100%;
      width: 100%;
      left: 0;
      top: 0;
    }

    .comment_box{
      width: 100%;
      position: fixed;

      bottom: 0;
      left: 0;
      padding: $_10;
      background: #fff;

      input{
        height: $_70;
        border: 1px solid #ccc;
        width: $_530;
        border-radius: $_10;
        margin-left: $_10;
        padding: 0 $_16;
        font-size: $_26;
        color: #999;
      }
    }

    .comment_box_btn button{
      height: $_70;
      width: $_160;
      border-radius: $_10;
      margin-left: $_20;
      color: #fff;
      font-size: $_26;
      background-color: $color-green;
    }

  }

}